↳ Prolog
↳ PrologToPiTRSProof
ordered_in(.(X, .(Y, Xs))) → U1(X, Y, Xs, less_in(X, s(Y)))
less_in(s(X), s(Y)) → U3(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U3(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U1(X, Y, Xs, less_out(X, s(Y))) → U2(X, Y, Xs, ordered_in(.(Y, Xs)))
ordered_in(.(X, [])) → ordered_out(.(X, []))
ordered_in([]) → ordered_out([])
U2(X, Y, Xs, ordered_out(.(Y, Xs))) → ordered_out(.(X, .(Y, Xs)))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
ordered_in(.(X, .(Y, Xs))) → U1(X, Y, Xs, less_in(X, s(Y)))
less_in(s(X), s(Y)) → U3(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U3(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U1(X, Y, Xs, less_out(X, s(Y))) → U2(X, Y, Xs, ordered_in(.(Y, Xs)))
ordered_in(.(X, [])) → ordered_out(.(X, []))
ordered_in([]) → ordered_out([])
U2(X, Y, Xs, ordered_out(.(Y, Xs))) → ordered_out(.(X, .(Y, Xs)))
ORDERED_IN(.(X, .(Y, Xs))) → U11(X, Y, Xs, less_in(X, s(Y)))
ORDERED_IN(.(X, .(Y, Xs))) → LESS_IN(X, s(Y))
LESS_IN(s(X), s(Y)) → U31(X, Y, less_in(X, Y))
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
U11(X, Y, Xs, less_out(X, s(Y))) → U21(X, Y, Xs, ordered_in(.(Y, Xs)))
U11(X, Y, Xs, less_out(X, s(Y))) → ORDERED_IN(.(Y, Xs))
ordered_in(.(X, .(Y, Xs))) → U1(X, Y, Xs, less_in(X, s(Y)))
less_in(s(X), s(Y)) → U3(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U3(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U1(X, Y, Xs, less_out(X, s(Y))) → U2(X, Y, Xs, ordered_in(.(Y, Xs)))
ordered_in(.(X, [])) → ordered_out(.(X, []))
ordered_in([]) → ordered_out([])
U2(X, Y, Xs, ordered_out(.(Y, Xs))) → ordered_out(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
ORDERED_IN(.(X, .(Y, Xs))) → U11(X, Y, Xs, less_in(X, s(Y)))
ORDERED_IN(.(X, .(Y, Xs))) → LESS_IN(X, s(Y))
LESS_IN(s(X), s(Y)) → U31(X, Y, less_in(X, Y))
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
U11(X, Y, Xs, less_out(X, s(Y))) → U21(X, Y, Xs, ordered_in(.(Y, Xs)))
U11(X, Y, Xs, less_out(X, s(Y))) → ORDERED_IN(.(Y, Xs))
ordered_in(.(X, .(Y, Xs))) → U1(X, Y, Xs, less_in(X, s(Y)))
less_in(s(X), s(Y)) → U3(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U3(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U1(X, Y, Xs, less_out(X, s(Y))) → U2(X, Y, Xs, ordered_in(.(Y, Xs)))
ordered_in(.(X, [])) → ordered_out(.(X, []))
ordered_in([]) → ordered_out([])
U2(X, Y, Xs, ordered_out(.(Y, Xs))) → ordered_out(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
ordered_in(.(X, .(Y, Xs))) → U1(X, Y, Xs, less_in(X, s(Y)))
less_in(s(X), s(Y)) → U3(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U3(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U1(X, Y, Xs, less_out(X, s(Y))) → U2(X, Y, Xs, ordered_in(.(Y, Xs)))
ordered_in(.(X, [])) → ordered_out(.(X, []))
ordered_in([]) → ordered_out([])
U2(X, Y, Xs, ordered_out(.(Y, Xs))) → ordered_out(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
LESS_IN(s(X), s(Y)) → LESS_IN(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
ORDERED_IN(.(X, .(Y, Xs))) → U11(X, Y, Xs, less_in(X, s(Y)))
U11(X, Y, Xs, less_out(X, s(Y))) → ORDERED_IN(.(Y, Xs))
ordered_in(.(X, .(Y, Xs))) → U1(X, Y, Xs, less_in(X, s(Y)))
less_in(s(X), s(Y)) → U3(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U3(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
U1(X, Y, Xs, less_out(X, s(Y))) → U2(X, Y, Xs, ordered_in(.(Y, Xs)))
ordered_in(.(X, [])) → ordered_out(.(X, []))
ordered_in([]) → ordered_out([])
U2(X, Y, Xs, ordered_out(.(Y, Xs))) → ordered_out(.(X, .(Y, Xs)))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
ORDERED_IN(.(X, .(Y, Xs))) → U11(X, Y, Xs, less_in(X, s(Y)))
U11(X, Y, Xs, less_out(X, s(Y))) → ORDERED_IN(.(Y, Xs))
less_in(s(X), s(Y)) → U3(X, Y, less_in(X, Y))
less_in(0, s(X)) → less_out(0, s(X))
U3(X, Y, less_out(X, Y)) → less_out(s(X), s(Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ UsableRulesReductionPairsProof
ORDERED_IN(.(X, .(Y, Xs))) → U11(Y, Xs, less_in(X, s(Y)))
U11(Y, Xs, less_out) → ORDERED_IN(.(Y, Xs))
less_in(s(X), s(Y)) → U3(less_in(X, Y))
less_in(0, s(X)) → less_out
U3(less_out) → less_out
less_in(x0, x1)
U3(x0)
The following rules are removed from R:
ORDERED_IN(.(X, .(Y, Xs))) → U11(Y, Xs, less_in(X, s(Y)))
U11(Y, Xs, less_out) → ORDERED_IN(.(Y, Xs))
Used ordering: POLO with Polynomial interpretation [25]:
less_in(s(X), s(Y)) → U3(less_in(X, Y))
less_in(0, s(X)) → less_out
U3(less_out) → less_out
POL(.(x1, x2)) = 2 + 2·x1 + 2·x2
POL(0) = 0
POL(ORDERED_IN(x1)) = x1
POL(U11(x1, x2, x3)) = 2 + 2·x1 + 2·x2 + x3
POL(U3(x1)) = 2 + x1
POL(less_in(x1, x2)) = x1 + x2
POL(less_out) = 2
POL(s(x1)) = 2 + x1
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ UsableRulesReductionPairsProof
↳ QDP
↳ PisEmptyProof
less_in(x0, x1)
U3(x0)